package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:20
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysResourcePropertyOption implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private Integer orderIndex;

    /**
     * Attribute orderIndex Be Seted Falg
     */
    private boolean orderIndexSetted = false;

    /**
    * Attribute orderIndex is Null Falg
    */
    private boolean orderIndexNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private Long sysResourcePropertyId;

    /**
     * Attribute sysResourcePropertyId Be Seted Falg
     */
    private boolean sysResourcePropertyIdSetted = false;

    /**
    * Attribute sysResourcePropertyId is Null Falg
    */
    private boolean sysResourcePropertyIdNull = false;
    private String valueCode;

    /**
     * Attribute valueCode Be Seted Falg
     */
    private boolean valueCodeSetted = false;

    /**
    * Attribute valueCode is Null Falg
    */
    private boolean valueCodeNull = false;
    private String valueLable;

    /**
     * Attribute valueLable Be Seted Falg
     */
    private boolean valueLableSetted = false;

    /**
    * Attribute valueLable is Null Falg
    */
    private boolean valueLableNull = false;

    public SysResourcePropertyOption() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get orderIndex
         *
         * @return Integer
         */
    final public Integer getOrderIndex() {
        return orderIndex;
    }

    /**
     * Set orderIndex
     *
     * @param Integer
     */
    final public void setOrderIndex(Integer orderIndex) {
        this.orderIndex = orderIndex;

        this.orderIndexSetted = true;

        this.setOrderIndexNull(this.orderIndex == null);
    }

    /**
     * Get orderIndex Has Been Setted
     *
     * @return boolean
     */
    final public boolean isOrderIndexSetted() {
        return this.orderIndexSetted;
    }

    /**
     * Set orderIndex Null
     *
     */
    final public void setOrderIndexNull() {
        this.orderIndexNull = true;
    }

    final public void setOrderIndexNull(boolean aNullFlag) {
        this.orderIndexNull = aNullFlag;
    }

    final public boolean isOrderIndexNull() {
        return this.orderIndexNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get sysResourcePropertyId
         *
         * @return Long
         */
    final public Long getSysResourcePropertyId() {
        return sysResourcePropertyId;
    }

    /**
     * Set sysResourcePropertyId
     *
     * @param Long
     */
    final public void setSysResourcePropertyId(Long sysResourcePropertyId) {
        this.sysResourcePropertyId = sysResourcePropertyId;

        this.sysResourcePropertyIdSetted = true;

        this.setSysResourcePropertyIdNull(this.sysResourcePropertyId == null);
    }

    /**
     * Get sysResourcePropertyId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysResourcePropertyIdSetted() {
        return this.sysResourcePropertyIdSetted;
    }

    /**
     * Set sysResourcePropertyId Null
     *
     */
    final public void setSysResourcePropertyIdNull() {
        this.sysResourcePropertyIdNull = true;
    }

    final public void setSysResourcePropertyIdNull(boolean aNullFlag) {
        this.sysResourcePropertyIdNull = aNullFlag;
    }

    final public boolean isSysResourcePropertyIdNull() {
        return this.sysResourcePropertyIdNull;
    }

    /**
         * Get valueCode
         *
         * @return String
         */
    final public String getValueCode() {
        if (isValueCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(valueCode);
        }
    }

    /**
     * Set valueCode
     *
     * @param String
     */
    final public void setValueCode(String valueCode) {
        this.valueCode = StringUtils.trim(valueCode);

        this.valueCodeSetted = true;

        this.setValueCodeNull(this.valueCode == null);
    }

    /**
     * Get valueCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isValueCodeSetted() {
        return this.valueCodeSetted;
    }

    /**
     * Set valueCode Null
     *
     */
    final public void setValueCodeNull() {
        this.valueCodeNull = true;
    }

    final public void setValueCodeNull(boolean aNullFlag) {
        this.valueCodeNull = aNullFlag;
    }

    final public boolean isValueCodeNull() {
        return this.valueCodeNull;
    }

    /**
         * Get valueLable
         *
         * @return String
         */
    final public String getValueLable() {
        if (isValueLableNull()) {
            return null;
        } else {
            return StringUtils.trim(valueLable);
        }
    }

    /**
     * Set valueLable
     *
     * @param String
     */
    final public void setValueLable(String valueLable) {
        this.valueLable = StringUtils.trim(valueLable);

        this.valueLableSetted = true;

        this.setValueLableNull(this.valueLable == null);
    }

    /**
     * Get valueLable Has Been Setted
     *
     * @return boolean
     */
    final public boolean isValueLableSetted() {
        return this.valueLableSetted;
    }

    /**
     * Set valueLable Null
     *
     */
    final public void setValueLableNull() {
        this.valueLableNull = true;
    }

    final public void setValueLableNull(boolean aNullFlag) {
        this.valueLableNull = aNullFlag;
    }

    final public boolean isValueLableNull() {
        return this.valueLableNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysResourcePropertyOption) == false) {
            return false;
        }

        SysResourcePropertyOption other = (SysResourcePropertyOption) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("orderIndex=");
        buffer.append(this.orderIndex);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("sysResourcePropertyId=");
        buffer.append(this.sysResourcePropertyId);

        buffer.append("valueCode=");
        buffer.append(this.valueCode);

        buffer.append("valueLable=");
        buffer.append(this.valueLable);

        buffer.append("]");

        return buffer.toString();
    }
}
